import { ref, type Component } from "vue";

export interface MenuItem {
  title: string;
  name: string;
  icon?: string | Component;
  children?: MenuItem[];
  role?: number;
}

export const collapse = ref(false);
export const onCollapse = (val: boolean) => {
  console.log(val);
  val ? (collapse.value = true) : (collapse.value = false);
};
